{% extends "employee/employee_base.html"%}
{% block currentPath %}
 >> Users    
{% endblock %}

{% block content %}
    <div id="filter">
        <form name="product-filter" action="" method="get">
        
        </form>
    </div>
    <div id="filter-results">
        <table class="table-list" border=0 cellspacing=0 cellpadding=5>
            <tr>
                <th width="50px">ID</th><th width="200px">Username</th><th width="200px">Email</th><th width="50px">Type</th><th>Last login</th>
            </tr>
            {% for user in users %}
            <tr align="center">
                <td>{{user.id}}</td>
                <td>
                    <strong><a href="/employee/users/manage/{{user.id}}/">{{user.username}}</a></strong>
                </td>
                <td>{{user.email}}</td>
                <td>
                    {% ifequal user.is_staff 1 %}
                        Staff
                    {% else %}
                        Normal
                    {% endifequal %}
                </td>
                <td>{{ user.last_login }}</td>
            </tr>
            {% endfor %}
            <tr>
                <td colspan=6 align="right">{% include "page_bar.html" %}</td>
            </tr>
        </table>
    </div>
{% endblock %}

